package apiDay02;

import java.util.Arrays;

public class SplitDemo {
    public static void main(String[] args) {

        String str="1,     Tom,          110,  tom@tedu.com ";
        str.split(",");
        System.out.println(str);
        String []arr=str.split(",");
        System.out.println(Arrays.toString(arr));
        for (int i = 0; i <arr.length; i++) {
            arr[i]=arr[i].trim();
            System.out.print(arr[i]);




        }
    }
}
